package tools

import "crypto/sha256"

/**
 *@author:zhengyilong
 *@email:1797344574@qq.com
 *@phone:13479394730
 *@DateTime:2022/4/11 9:01
 **/

func Sha256(data []byte)[]byte {
	hash := sha256.New()
	hash.Write(data)
	return hash.Sum(nil)
}